{extend name="public/base" /}

{block name="content"}
<style>
    .pagination{
        margin-top: 0;
        margin-bottom: 0;
    }
</style>
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <p class=" alert alert-warning">
                        <span class="glyphicon glyphicon-bell"></span>&nbsp;&nbsp;
                        每月15日 03:00:00 系统自动进行数据清理
                    </p>
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>管理员</th>
                            <th>所属角色</th>
                            <th>登录ip</th>
                            <th>登录时间</th>
                            <th>退出时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        {empty name='list'}
                        <tr align="center">
                            <td colspan="6">
                                暂时没有数据哦
                            </td>
                        </tr>
                        {else /}
                        {foreach $list as $k=>$item}
                        <tr id="del-{$item.id}">
                            <td>
                                {$item.id}
                            </td>
                            <td>
                                <a> {$admin_name[$item['admin_id']]}</a>
                            </td>
                            <td>{$role_name[$admin_role_id[$item['admin_id']]]}</td>
                            <td>{$item.ip}</td>

                            <td>{$item.create_time}</td>
                            <td>{$item.last_login_time}</td>
                        </tr>
                        {/foreach}
                        {/empty}
                        </tbody>
                    </table>
                    {$list|raw}
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name="js"}

{/block}